function launchPlan() {
    jQuery.ajax({
        url:"../material/launch",
        type:"POST",
        async: false,
        data: {locId:10},
        contentType:"application/x-www-form-urlencoded; charset=utf-8",
        dataType:"json",
        success:function(data){
            console.log(data);
            if(data.code==0){
                var tdata=data.object;

                if(data.code==0){
                    var tdata=data.object;
                    var i = 0;
                    var str = "";
                    if (tdata[0].type == 0) {
                        str = "<img id='_launch_image' alt='image' width='100%' height='100%' src='"+ tdata[0].url +"'>"
                    }
                    if (tdata[0].type == 1) {
                        str = "<video id=\"_launch_video\" width='100%' height='100%' src='"+ tdata[0].url+"' controls autoplay loop muted>\n" +
                            "    Your browser does not support the video tag.</video>"
                    }
                    document.getElementById("_launch_div").innerHTML = str;
                    window.setInterval(function() {
                        var j = i + 1;
                        if (j == tdata.length) {
                            j = 0;
                            i = -1;
                        }
                        var material = tdata[j];
                        if (material.type == 0) {
                            str = "<img id='_launch_image' alt='image' width='100%' height='100%' src='"+ material.url +"'>"
                        }
                        if (material.type == 1) {
                            str = "<video id=\"_launch_video\"width='100%' height='100%' src='"+ material.url+"' controls autoplay loop muted >\n" +
                                "    Your browser does not support the video tag.</video>"
                        }
                        document.getElementById("_launch_div").innerHTML = str;
                        i = i + 1;
                    },tdata[i].seconds*1000);
                }
            }
        },
        error:function(){
            alert("search fails！");
        }
    });
}

